<?php

namespace App\Models\V1;

use Illuminate\Database\Eloquent\Model;

class BaseModel extends Model
{
    public $timestamps = true;
    protected $connection="mysql";

    public function getCreatedAtAttribute()
    {
        return date("Y-m-d H:i:s",strtotime($this->attributes['created_at']));
    }

    public function getUpdatedAtAttribute()
    {
        return date("Y-m-d H:i:s",strtotime($this->attributes['updated_at']));
    }
}
